<?php

namespace app\common\validate;

// 引用tp的验证器
use think\Validate;

use function PHPSTORM_META\type;

class Config extends Validate
{
    // 验证规则
    protected $rule = [
        'title'  =>  'require',
        'key' => 'require',
        'value' =>  'require',
        'type'  => 'require'
    ];

    // 提示信息
    protected $message = [
        'title.require'  =>  '配置标题必填',
        'key.require' =>  '配置名称必填',
        'value.require' =>  '配置类型必填',
        'type.require' => '配置的值必填'
        // 'password.length' =>  '密码必须6到12位',
    ];

    // 验证场景
    protected $scene = [
        
    ];  
}